* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #fbfbfd;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #1d1d1f;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.003em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 上传区域样式 */
.upload-area {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px dashed #86868b;
    border-radius: 18px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.upload-button {
    display: inline-block;
    padding: 16px 32px;
    background-color: #0066cc;
    color: white;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.022em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.upload-button:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

.support-text {
    font-size: 15px;
    color: #000000;
    margin-top: 12px;
    font-weight: 500;
}

/* 上传区域悬停时的文字样式 */
.upload-area:hover .support-text {
    color: #0066cc;
    background-color: rgba(0, 102, 204, 0.1);
}

/* 压缩设置样式 */
.compression-settings {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 24px;
    border-radius: 18px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    font-weight: 500;
    font-size: 16px;
    color: #1d1d1f;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 200px;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    margin: 0 12px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #0066cc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* 预览区域样式 */
.preview-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.preview-box {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.preview-box h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.preview-box img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
}

.preview-box p {
    color: #6e6e73;
    font-size: 16px;
    margin: 12px 0;
    font-weight: 500;
}

.download-button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.download-button:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 24px;
    }
    
    .preview-container {
        flex-direction: column;
    }
    
    .preview-box {
        min-width: 100%;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-button {
        font-size: 17px;
    }
    
    .preview-box h3 {
        font-size: 20px;
    }
}

/* 添加动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#settingsArea, #previewArea {
    animation: fadeIn 0.5s ease forwards;
} 